<template>
  <div id="app">
    <router-view/>
  </div>
</template>
<script>
  export default {
    name:'App',
    data(){
      return {
        title:''
      }
    },
    metaInfo() {
      return {
        title:this.title,
        titleTemplate: title =>{
          return title + '- iBotStore'
        }
      }
    },
    watch:{
      $route: {
        handler: function(route) {
          this.title = route.meta && route.meta.title;
        },
        immediate: true
      }
    }
  }
</script>
<style lang="scss">

</style>
